import common.Log;
import http.RetrofitFactory;
import http.bean.normalbean.BaseEntity;
import http.config.HttpConfig;
import io.reactivex.Observer;
import io.reactivex.Scheduler;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;

/**
 * Created by yemao on 2017/6/6.
 */
public class Example {
    public static void main(String[] args) {

        //模拟获取设备列表

        RetrofitFactory.getInstence().API()
                .getWipmList(HttpConfig.UUID)
                .subscribe(new Observer<BaseEntity<Object>>() {
                    @Override
                    public void onSubscribe(Disposable d) {

                    }

                    @Override
                    public void onNext(BaseEntity<Object> objectBaseEntity) {
                        Log.e("","成功");
                    }

                    @Override
                    public void onError(Throwable e) {
                        Log.e("","失败"+e);
                    }

                    @Override
                    public void onComplete() {

                    }
                });

    }
}
